package com.linser.gistools.utils;

import com.google.common.eventbus.EventBus;

/**
 * @author: linser
 * @Desc: 观察者模式事件总线(单例模式)
 * @create: 2024-02-02 21:01
 **/
public class EventBusUtil {
    private EventBusUtil(){
    }
    private final static EventBus eventBus = new EventBus();
    //注意 该事件总线只能在javafx主线程中使用
    public static EventBus getDefault(){
        return eventBus;
    }
}
